package cn.pro.controller;


import cn.pro.api.ILoginService;
import cn.pro.api.IProUserService;
import cn.pro.entity.qo.LoginQo;
import cn.pro.utils.ProData;
import cn.pro.utils.VableUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/login")
public class LoginController {



    @Autowired
    private ILoginService iLoginService;

    @RequestMapping(value = "/enter",method = RequestMethod.POST)
    public ProData userLogin(@RequestBody LoginQo loginQo){
        return ProData.data("200", VableUtil.SUSSES_STATUS,iLoginService.login(loginQo));
    }
}
